-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Livechat analytics in a given date range consider conversation data from the following day #33054
Conversation
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 09a686c The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #33054 +/- ##
========================================
Coverage 59.38% 59.38%
========================================
Files 2547 2547
Lines 63241 63238 -3
Branches 14225 14224 -1
========================================
- Hits 37558 37557 -1
+ Misses 22975 22974 -1
+ Partials 2708 2707 -1
Flags with carried forward coverage won't be shown. Click here to find out more. |
…m/RocketChat/Rocket.Chat into fix/livechat-analytics-time-range
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible and also does it make sense to add some test cases to cover (also) cases where there is some data for that specific day and we can ensure that is calculating it properly?
Just to have more cases, not ONLY with 0 conversations.
We can't do that on the end-to-end tests since we only have data for the "current day" there |
This PR currently has a merge conflict. Please resolve this and then re-add the |
…nto fix/livechat-analytics-time-range
…ata from the following day (#33054)
Proposed changes (including videos or screenshots)
livechat/analytics/overview
endpoint): average of response time, average of first response time, average of reaction time (among all agents);livechat/analytics/agent-overview
endpoint): total conversations (percentage of taken conversations), average chat duration and total messages;livechat/analytics/agent-overview
endpoint): average first response time, best first response time, average response time and average reaction time (for each specific agent).Charts metrics and conversation overview metrics should not be affected by this change (since this specific issue was not happening to them)
Issue(s)
Steps to test or reproduce
Go to Omnichannel > Analytics and select a date range in which there is not livechat activity in the workspace, but there is activity in the following day.
Current behavior: the analytics listed above would be affected by the data from conversation from the following day (ie the day after the selected period end date).
Expected behavior: only conversations in the selected date range should be considered to build all livechat analytics.
Further comments
CORE-610